package com.hopes.bizz.enforcement.hid.dto;


import com.hopes.bizz.common.core.validate.group.AuditGroup;
import com.hopes.bizz.common.core.validate.group.AuditPassGroup;
import com.hopes.bizz.common.core.validate.group.AuditRejectGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lyb
 * @version 1.0
 * @date 2023/3/17 10:10
 */

@Data
public class RiskHandleHidRectifyDTO implements Serializable {

    private static final long serialVersionUID = -4006846190657477362L;

    @NotNull(message = "主键标识为必填项", groups = {AuditGroup.class})
    private Long id;

    /**
     * 整改说明
     */
    @NotBlank(message = "整改说明为必填项", groups = {AuditPassGroup.class})
    @Length(max = 500, message = "整改说明最大长度为:500", groups = {AuditPassGroup.class})
    private String correctiveReportDesc;
    /**
     * 整改图片
     */
    @NotBlank(message = "整改图片为必填项", groups = {AuditPassGroup.class})
    @Length(max = 200, message = "整改图片最大长度为:200", groups = {AuditPassGroup.class})
    private String correctiveReportPhoto;

    /**
     * 处理结果
     */
    @NotNull(message = "处理结果为必填项", groups = {AuditGroup.class})
    private Integer handleResult;

    /**
     * 审核说明
     */
    @NotBlank(message = "审核说明为必填项", groups = {AuditRejectGroup.class})
    private String handleResultDesc;

    /**
     * 资金(万元)
     */
    private String cost;
}
